﻿using System;
using System.Collections.Generic;
using JQuery.WebKit.Common.ActiveDirectory;

namespace JQuery.WebKit.WebCommon.Security
{
    public interface ISecurityPrincipal
    {
        bool IsAuthenticated { get; }
        UserInfo SecurityInfo { get; }

        string AccountName { get; }
        string UserName { get; }
        string Email { get; }
        string CurrentRole { get; }
        List<string> Roles { get; }

        bool CheckName(string name);
        bool CheckName(Uri url);
    }
}
